#! /usr/bin/env python
# -*- coding: utf-8 -*-
# __author__ = "Dylan"


from . import admin
from flask import render_template, request


@admin.route("/login", methods=['GET', 'POST'])
def login():
    if request.method == 'POST':
        pass
        # 如果账户或密码正确跳转到admin_index页面，否则重定向到admin_login页面
    return render_template('admin_login.html')


@admin.route("/index", methods=['GET', 'POST'])
def index():
    return render_template('admin_index.html')


@admin.route("/pwd", methods=['GET', 'POST'])
def pwd():
    return render_template('admin_pwd.html')


@admin.route("/tag_add", methods=['GET', 'POST'])
def tag_add():
    return render_template('tag_add.html')


@admin.route("/tag_list", methods=['GET', 'POST'])
def tag_list():
    return render_template('tag_list.html')


@admin.route("/movie_add", methods=['GET', 'POST'])
def movie_add():
    return render_template('movie_add.html')


@admin.route("/movie_list", methods=['GET', 'POST'])
def movie_list():
    return render_template('movie_list.html')


@admin.route("/preview_add", methods=['GET', 'POST'])
def preview_add():
    return render_template('preview_add.html')


@admin.route("/preview_list", methods=['GET', 'POST'])
def preview_list():
    return render_template('preview_list.html')


@admin.route("/user_list", methods=['GET', 'POST'])
def user_list():
    return render_template('user_list.html')


@admin.route("/user_view", methods=['GET', 'POST'])
def user_view():
    return render_template('user_view.html')


@admin.route("/comment_list", methods=['GET', 'POST'])
def comment_list():
    return render_template('comment_list.html')


@admin.route("/moviecol_list", methods=['GET', 'POST'])
def moviecol_list():
    return render_template('moviecol_list.html')


@admin.route("/oplog_list", methods=['GET', 'POST'])
def oplog_list():
    return render_template('oplog_list.html')


@admin.route("/adminloginlog_list", methods=['GET', 'POST'])
def adminloginlog_list():
    return render_template('adminloginlog_list.html')


@admin.route("/userloginlog_list", methods=['GET', 'POST'])
def userloginlog_list():
    return render_template('userloginlog_list.html')


@admin.route("/auth_add", methods=['GET', 'POST'])
def auth_add():
    return render_template('auth_add.html')


@admin.route("/auth_list", methods=['GET', 'POST'])
def auth_list():
    return render_template('auth_list.html')


@admin.route("/role_add", methods=['GET', 'POST'])
def role_add():
    return render_template('role_add.html')


@admin.route("/role_list", methods=['GET', 'POST'])
def role_list():
    return render_template('role_list.html')


@admin.route("/admin_add", methods=['GET', 'POST'])
def admin_add():
    return render_template('admin_add.html')


@admin.route("/admin_list", methods=['GET', 'POST'])
def admin_list():
    return render_template('admin_list.html')

